﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.StampApprove
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.StampApprove;

    public class map_StampApproveFlowAttachments : EntityMapping<StampApproveFlowAttachments>
    {
        public map_StampApproveFlowAttachments()
        {
            ManyToOne(x => x.StampApproveFlow, map =>
            {
                map.Column("StamoApprovelId");
            });

            Property(x => x.AttachmentTypeName, map =>
            {
                map.Length(100);
            });

            ManyToOne(x => x.Attachment, map =>
            {
                map.Column("AttachmentId");
            });
        }
    }
}
